package jwr.basic;

import java.util.Scanner;

public class Ex64 {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		
		int nums[] = new int[9];
		int cnt;
		System.out.print("9개의 숫자를 입력하세요 : ");
		for(int i = 0; i < 9;i++){
			nums[i] = sc.nextInt();
		}
		System.out.println();
		System.out.println("출력 결과 : ");
		cnt = 0;
		for(int i = 0; i<3;i++){
			for(int j = 0; j<3;j++){
				if(j<2){
					System.out.print(nums[cnt]+", ");
				}else{
					System.out.println(nums[cnt]);
				}
				cnt++;
			}
		}
	}

}
